package com.tansun.easycare.rule.table.exclusions.entity;

import java.util.ArrayList;
import java.util.List;

import com.tansun.easycare.rule.common.model.BomField;
import com.tansun.easycare.rule.table.entity.RuleDecisiontableDetail;

/**
 * 决策表信息/一维表索引/赋值索引/排除项详情Entity
 *
 * @author lixs
 * @version 2017-03-01
 */
public class ExclusionsBO extends RuleDecisiontableDetail {

    private List<ExclusionsBO> list;

    public List<ExclusionsBO> getList() {
        if (list == null)
            list = new ArrayList<ExclusionsBO>();
        return list;
    }

    public void setList(List<ExclusionsBO> list) {
        this.list = list;
    }

    public void initModel(BomField param) {
        this.setClassName(param.getClassName());
        this.setNamecn(param.getLabel());
        this.setNameen(param.getName());
        this.setDomain(param.getDomain());
        this.setDataType(param.getDataType());
        this.setDefaultValue(param.getDefaultValue());
    }
}